<template>
<div>
   <div v-for="(item,index) in attr" :key="index">
      <div>
        {{item.attr_name}}
    </div>
    <div style="marginTop:10px">
          <el-tag closable v-for="(value,i) in item.attr_vals.split(',')" :key="i" style="margin-right: 10px;margin-top: 10px;">{{value}}</el-tag>
    </div>
   </div>
</div>
</template>
<script setup>
 let props = defineProps({
    attr:Array
 })
 
</script>